<?php
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
|这里是您可以为应用程序注册API路由的地方。这些
|路由由组中的RouteServiceProvider加载
|被分配了“api”中间件组。享受构建API的乐趣！
|
*/
//后台小程序开放接口
$api = app('Dingo\Api\Routing\Router');

$api->version('v1', function ($api) {

    $api -> group(['namespace' => 'App\Api\Controllers', 'prefix' => 'admin'], function ($api) {
        $api->post('replenish/finish', 'ReplenishController@finishReplenish');

        $api->post('replenish/cancel', 'ReplenishController@cancelReplenish');

        $api->get('prize/draw', 'PrizeDrawController@getNumber');

        $api->get('prize/count', 'PrizeDrawController@getCount');

        $api->get('prize/refresh', 'PrizeDrawController@refresh');
    });
});
